package com.ruoyi.web.mapper;

import java.util.List;
import com.ruoyi.web.domain.FoodDietPlan;
import org.apache.ibatis.annotations.Mapper;

/**
 * 计划Mapper接口
 *
 * @author xian_pei
 * @date 2024-06-13
 */
@Mapper
public interface FoodDietPlanMapper
{
    /**
     * 查询计划
     *
     * @param planId 计划主键
     * @return 计划
     */
    public FoodDietPlan selectFoodDietPlanByPlanId(Long planId);

    /**
     * 查询计划列表
     *
     * @param foodDietPlan 计划
     * @return 计划集合
     */
    public List<FoodDietPlan> selectFoodDietPlanList(FoodDietPlan foodDietPlan);

    /**
     * 新增计划
     *
     * @param foodDietPlan 计划
     * @return 结果
     */
    public int insertFoodDietPlan(FoodDietPlan foodDietPlan);

    /**
     * 修改计划
     *
     * @param foodDietPlan 计划
     * @return 结果
     */
    public int updateFoodDietPlan(FoodDietPlan foodDietPlan);

    /**
     * 删除计划
     *
     * @param planId 计划主键
     * @return 结果
     */
    public int deleteFoodDietPlanByPlanId(Long planId);

    /**
     * 批量删除计划
     *
     * @param planIds 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteFoodDietPlanByPlanIds(Long[] planIds);
}
